console.log(Object.assign([1, 2, 3], [4, 5]))
// [4, 5, 3]
// 取值函数的处理
const source = {
    get foo() { return 1 }
  };
  const target = {};
  
  Object.assign(target, source)
  // { foo: 1 }